﻿package se.penselnsvag.bookdb.tech.collection{
	

public class HashableString implements Hashable {
	private var _code:String;
	public function HashableString(s:String) {
		_code = s;
	}
	
	public function hashCode():String {
		/*
		var n:Number = 1;
		var s:String = super.toString();
		for(var i=0;i<length(s);i++) 
			n=n*(128^i)*s.charCodeAt(i);
	
		return n;
		*/
		return _code;
	}
	
	public function toString():String {
		return _code;
	}
}
}